package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.YjzyfwdMapper;
import com.ruoyi.system.domain.Yjzyfwd;
import com.ruoyi.system.service.IYjzyfwdService;

/**
 * YjzyfwdService业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-01
 */
@Service
public class YjzyfwdServiceImpl implements IYjzyfwdService 
{
    @Autowired
    private YjzyfwdMapper yjzyfwdMapper;

    /**
     * 查询Yjzyfwd
     * 
     * @param id Yjzyfwd主键
     * @return Yjzyfwd
     */
    @Override
    public Yjzyfwd selectYjzyfwdById(Long id)
    {
        return yjzyfwdMapper.selectYjzyfwdById(id);
    }

    /**
     * 查询Yjzyfwd列表
     * 
     * @param yjzyfwd Yjzyfwd
     * @return Yjzyfwd
     */
    @Override
    public List<Yjzyfwd> selectYjzyfwdList(Yjzyfwd yjzyfwd)
    {
        return yjzyfwdMapper.selectYjzyfwdList(yjzyfwd);
    }

    /**
     * 新增Yjzyfwd
     * 
     * @param yjzyfwd Yjzyfwd
     * @return 结果
     */
    @Override
    public int insertYjzyfwd(Yjzyfwd yjzyfwd)
    {
        yjzyfwd.setCreateTime(DateUtils.getNowDate());
        return yjzyfwdMapper.insertYjzyfwd(yjzyfwd);
    }

    /**
     * 修改Yjzyfwd
     * 
     * @param yjzyfwd Yjzyfwd
     * @return 结果
     */
    @Override
    public int updateYjzyfwd(Yjzyfwd yjzyfwd)
    {
        yjzyfwd.setUpdateTime(DateUtils.getNowDate());
        return yjzyfwdMapper.updateYjzyfwd(yjzyfwd);
    }

    /**
     * 批量删除Yjzyfwd
     * 
     * @param ids 需要删除的Yjzyfwd主键
     * @return 结果
     */
    @Override
    public int deleteYjzyfwdByIds(Long[] ids)
    {
        return yjzyfwdMapper.deleteYjzyfwdByIds(ids);
    }

    /**
     * 删除Yjzyfwd信息
     * 
     * @param id Yjzyfwd主键
     * @return 结果
     */
    @Override
    public int deleteYjzyfwdById(Long id)
    {
        return yjzyfwdMapper.deleteYjzyfwdById(id);
    }
}
